package com.yunxi.dao.customer;

import com.yunxi.core.dao.BaseMapperPlus;
import com.yunxi.customer.pojo.CustomerVO;
import com.yunxi.customer.pojo.SatCustomerIntentionVO;
import com.yunxi.model.customer.Customer;
import com.yunxi.model.customer.SatCustomerIntention;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 客户信息 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2019-05-09
 */
public interface CustomerMapper extends BaseMapperPlus<Customer> {
   CustomerVO load(@Param("customerNo") String customerNo,@Param("partnerCode") String partnerCode);

   SatCustomerIntentionVO getCustomerClueInfo(SatCustomerIntentionVO satCustomerIntention);

   List<CustomerVO> allList(CustomerVO customerVO);

   List<CustomerVO> todayCustomerList(CustomerVO customerVO);

    CustomerVO getByPhone(@Param("phone") String phone, @Param("partnerCode") String partnerCode);

   CustomerVO getCustomerByPhone(@Param("phone") String phone, @Param("partnerCode") String partnerCode);

   String getVehicleNameByVehicleCode(@Param("vehicleCode")String vehicleCode);

   String getFirstCreateCustomerPartnerCode(CustomerVO customerVO);

   List<CustomerVO> getCustomerURM(@Param("phone")String phone);

    List<CustomerVO> pageByOem(Map map);
}
